I'm sorry, but I decided not to publish the complete source code of PRAM-Reader. Instead, here is only the most interesting, PRAM-relevant part. If you have questions to other parts of the PRAM-Reader application (for example how to support AppleEvents) feel free to mail me your question(s). I'll explain it to you or I'll say you where you can read about it.
The file PRParamRAM.p is a unit which PRAM-Reader uses. It is divided into two parts:
The first part contains low-level routines both for PPC and 68K-Macs which accesses the PRAM, the other part uses this routines for reading and writing "PRam"-files, which PRAM-Reader creates.
The unit compiles without problems with Metrowerks Pascal for PPC and 68K from the CodeWarrior 6 CD. It should compile without changes with CodeWarrior 5, too (PRAM-Reader itself doesn't because it uses objects). The 68K inline code works with THINK Pascal, too; when you snip the PPC code, the unit should compile with THINK Pascal well after making minor changes.
You may not use this source code in your own programs without my permission.